package com.yonyou.brigade.ybz.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

@TableName("convert_template_mapping")
public class ConvertTemplateMapping extends Model<ConvertTemplateMapping> {

    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 转换数据字段编码
     */
    @TableField("convert_column")
    private String convertColumn;
    /**
     * 模板字段编码
     */
    @TableField("template_column")
    private String templateColumn;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getConvertColumn() {
        return convertColumn;
    }

    public void setConvertColumn(String convertColumn) {
        this.convertColumn = convertColumn;
    }

    public String getTemplateColumn() {
        return templateColumn;
    }

    public void setTemplateColumn(String templateColumn) {
        this.templateColumn = templateColumn;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String CONVERT_COLUMN = "convert_column";

    public static final String TEMPLATE_COLUMN = "template_column";

    public static final String CREATOR = "creator";

    public static final String CREATE_TIME = "create_time";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ConvertTemplateMapping{" +
                "id=" + id +
                ", convertColumn=" + convertColumn +
                ", templateColumn=" + templateColumn +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", ts=" + ts +
                "}";
    }
}
